package org.gten.gegedexin.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Eric
 * @date 2023/6/9
 * at_info表存储了附件的所有信息
 * at_id 附件id，用于和邮件关联 -- 主键
 * filepath 在本机存储的文件路径
 * format 附件类型 .jpg .png .7z .mp4 ...
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "at_info")
public class AtInfoPojo {
    @TableField(value = "at_id")
    private int atId;

    @TableField(value = "name")
    private String name;


    @TableField(value = "format")
    private String format;

    @Override
    public String toString() {
        return "AtInfoPojo{" +
                "atId=" + atId +
                ", filepath='" + name + '\'' +
                ", format='" + format + '\'' +
                '}';
    }
}
